{%include file="header.html"%}
<style>
table{text-align: center;}
th a{ color:#000000;}
</style>
<body>
  <div class="fixed-bar">
    <div class="item-title">
      <h3>订单列表</h3>
        <form action="order.php" name="searchForm" method="get">
          <input type="hidden" name="act" value="list">
          <!-- 订单编号 -->
          订单编号
          <input type="text" name="order_sn" value="{%$order_sn%}"style="height:18px">
           <!-- 收货人 -->
          收货人
          <input type="text" name="consignee" value="{%$consignee%}"style="height:18px">
          订单状态
          <select name="zt">
            <option value="0"{%if $zt=='0'%}selected="selected"{%/if%}>请选择</option>
            <option value="1" {%if $zt=='1'%}selected="selected"{%/if%}>待确认</option>
            <option value="2" {%if $zt=='2'%}selected="selected"{%/if%}>待付款</option>
            <option value="3" {%if $zt=='3'%}selected="selected"{%/if%}>待发货</option>
            <option value="4" {%if $zt=='4'%}selected="selected"{%/if%}>已完成</option>
            <option value="5" {%if $zt=='5'%}selected="selected"{%/if%}>付款中</option>
            <option value="6" {%if $zt=='6'%}selected="selected"{%/if%}>取消</option>
            <option value="7" {%if $zt=='7'%}selected="selected"{%/if%}>无效</option>
            <option value="8" {%if $zt=='8'%}selected="selected"{%/if%}>退货</option>
            <option value="9" {%if $zt=='9'%}selected="selected"{%/if%}>部分发货</option>
          </select>
          <input value=" 搜索 " id="but_sousuo" style="width:50px; height:27px; margin-top:13px;" class="button" type="submit">
          <a href="order.php?act=list&zt=1">待确认</a>
          <a href="order.php?act=list&zt=2">待付款</a>
          <a href="order.php?act=list&zt=3">待发货</a>
          <div style="background:rgba(251,112,45,1);width:125px;height:40px;float:right;text-align:center;border-radius:5px;">
          <a href="order.php?act=excel">
          <h5 style="padding:10px;color:#fff;">订单导出</h5>
          </a>
          </div>
        </form>
      </div>
    </div>
  <div class="fixed_bottom">
    <form method="post" action="" id="aspnetForm" name="form1">
      <table align="center;" class="table tb-type2">
        <thead>
          <tr>
            <th width="50"><a>订单编号</a></th>
            <th width="25%"><a>下单时间</a></th>
            <th><a>收货人</a></th>
            <th><a>总金额</a></th>
            <th><a>应付金额</a></th>
            <th><a>订单状态</a></th>
            <th><a>操作</a></th>
          </tr>
        </thead>
        <tbody id="sortable">
          {%foreach from=$order_list item=list key=k%}
            <tr>
              <td>{%$list.order_sn%}</td>
              <td>
              <span>{%$list.add_time|date_format:'%Y-%m-%d %H:%M:%I'%}</span>
              </td>
              <td>{%$list.consignee%}</td>
              <td>{%$list.goods_amount%}</td>
              <td>{%$list.order_amount%}</td>
              <td>
              {%if $list.order_status==0%}未确认
              {%elseif $list.order_status==1 %}已确认
              {%elseif $list.order_status==2 %}<font color="#FF0000">取消</font>
              {%elseif $list.order_status==3 %}<font color="#FF0000">无效</font>
              {%elseif $list.order_status==4 %}<font color="#FF0000">退货</font>
              {%elseif $list.order_status==5 %}已分单
              {%elseif $list.order_status==6 %}部分已分单
              {%/if%}&nbsp;&nbsp;
              {%if $list.pay_status==0%}未付款
              {%elseif $list.pay_status==1%}付款中
              {%elseif $list.pay_status==2%}已付款
              {%/if%}&nbsp;&nbsp;
              {%if $list.shipping_status==0%}未发货
              {%elseif $list.shipping_status==1%}已发货
              {%elseif $list.shipping_status==2%}收货确认
              {%elseif $list.shipping_status==3%}配货中
              {%elseif $list.shipping_status==4%}已发货(部分商品)
              {%elseif $list.shipping_status==5%}发货中
              {%/if%}
              </td>
              <td>
                <a href="order.php?act=edit&order_id={%$list.order_id%}">查看</a>
              </td>
            </tr>
          {%/foreach%}
        </table>
      <div class="page">{%$page%}</div>
    </form>
  </div>
</body>
</html>